<?php
 
header("Content-Type:text/html;charset=utf-8"); 
define('hopedir', dirname(__FILE__).DIRECTORY_SEPARATOR);  
$config = hopedir."config/hopeconfig.php";   
$cfg = include($config); 
 
$lnk = mysql_connect($cfg['dbhost'], $cfg['dbuser'], $cfg['dbpw']) or die ('Not connected : ' . mysql_error()); 
$version = mysql_get_server_info(); 
if($version > '4.1' && $cfg['dbcharset']) {
				mysql_query("SET NAMES '".$cfg['dbcharset']."'");
} 
if($version > '5.0') {
				mysql_query("SET sql_mode=''");
}
												
if(!@mysql_select_db($cfg['dbname'])){ 
				if(@mysql_error()) {
					echo '数据库连接失败';exit;
				} else {
					mysql_select_db($cfg['dbname']);
				}
}

 mysql_query('INSERT INTO `xiaozu_areacode`(`id`,`name`,`pid`,`disorder`,`procode`) VALUES(\'320214\',\'坊前镇\',\'320200\',\'\',\'\')');

// mysql_query("ALTER TABLE  `xiaozu_order` ADD  `farecost` decimal(10,2)   COMMENT  '小费价格'; ");
// mysql_query("
// UPDATE  `xiaozu_shop` SET  `point` =  '5',
// `pointcount` =  '1',
// `psservicepoint` =  '5',
// `psservicepointcount` =  '1' ;
//   ");
//  mysql_query(" ALTER TABLE `xiaozu_juanrule` ADD `paytype` varchar(20) NULL ");

 
echo mysql_error();
mysql_close($lnk);		 
echo 'ok';
exit;		
?>